Properties

Name Returns Notes Example
countOfUnfulfilledOrders Long
checkoutItems CheckoutItems
shoppingCartId String
paymentProviders List
cartStates Map
fulfilmentStatuses Map

Methods

Name Returns Notes Example
setFulfillmentStatus ( cart, status ) void
setFulfillmentStatus ( carts, status ) void
newCart ( customer ) Cart
getCart ( id ) Cart Look up a cart
countOfOrders ( start, finish ) Long Returns orders created between the common start and end dates
searchCarts ( fulfilment, max, query ) List Search carts which have been submitted (ie purchases)
searchCarts ( fulfilment, sCartState, max, query ) List
deleteCart ( cart ) void Performs a physical delete on the cart and its productorders
applyPromoCodes ( cart, store, codes ) List Applies voucher and promotion codes to the cart.
Returns a map of codes with a boolean indicating if the code was applied successfully or not
doProcessCart ( rc, checkoutItems, purchaser, paymentProviderId ) PaymentResult
getOrCreateCustomerGroup ( groupName ) Group
getOrCreatePurchaser ( rc, customerGroup ) Profile
placeOrder ( c, store ) void
checkoutItems ( lead ) CheckoutItems
checkoutItems ( cart ) CheckoutItems
clearCart ( ) void
addOrUpdateItem ( cart, sku, quantity, store, increment ) Cart
addOrUpdateItem ( cart, sku, quantity, store, increment ) Cart
removeItem ( lineId ) boolean
numItemsInCart ( p ) BigDecimal Return the total quantity of the current product in the shopping cart. Applies to all SKU's related to the product
numItemsInCart ( sku ) BigDecimal The total quantity related to the given SKU in cart
cartDescription ( cart ) String Get a description of the items in the cart.